package com.practice.pojo.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author Jasmine
 * @since 2023-05-14
 */
@Data
@Accessors(chain = true)
@TableName("ydd_article")
@ApiModel(value = "Article对象", description = "")
public class Article implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("文章id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("作者的用户名， 用户发布的user-名称")
    private String author;

    @ApiModelProperty("seo关键字")
    private String keywords;

    @ApiModelProperty("seo的 描述")
    private String description;

    @ApiModelProperty("文章内容")
    private String content;

    @ApiModelProperty("缩略图，可多张逗号分隔")
    private String pic;

    @ApiModelProperty("阅读次数")
    private Long click;

    @ApiModelProperty("0表示不推荐1表示推荐")
    private Integer ishot;

    @ApiModelProperty("是否置顶，1是，0否，置顶的文章必须是推荐文章")
    private Integer istop;

    @ApiModelProperty("创建时间")
    @JsonProperty("create_date")
    private Long createDate;

    @ApiModelProperty("更新时间")
    @JsonProperty("update_date")
    private Long updateDate;

    @ApiModelProperty("分类ID")
    private Integer cateid;

    @ApiModelProperty("文章的标签，可多个逗号分隔")
    private String tags;

    @ApiModelProperty("文章状态，0待审核，1草稿箱，2已发布，3已删除")
    private Integer status;

    @ApiModelProperty("收藏数量")
    private String lovenum;

    @ApiModelProperty("用户id")
    private Long userId;

    @ApiModelProperty("是否为默认数据，null表示不是，1表示是")
    private String defaultData;

}
